package cn.edu.scau.cmi.chenyuesong.adapter;
import java.util.List;

public class SortUtil {
	public void sortInt(List<Integer> intList) {
		for(int i = 0;i < intList.size()-1; i++) {
			Integer left = intList.get(i);
			for(int j = i+1;j < intList.size(); j++) {
                Integer right = intList.get(j);
                if(left>right) {
                	intList.set(i, right);
                    intList.set(j, left);
                    left = right;
                }
			}
		}
	}
}
	

